package com.example.provider.service;

import com.alibaba.nacos.api.config.annotation.NacosProperty;
import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.example.api.AppService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Value;

/**
 *
 */
@DubboService
public class AppServiceImpl implements AppService {
    @Value("${address}")
    private String address;

    @Value("${age}")
    private String age;

    @Override
    public String getPort() {
        return address + age;
    }
}
